﻿using System.Data;
using DAL;

namespace BLL
{
    public class Order_BLL
    {
        public static Order_DAL cls = new Order_DAL();
        #region[Get-Data]
        public DataTable GetOrder(string keywords)
        {
            return cls.GetOrder(keywords);
        }
        public DataTable GetOrderIsUsed(string keywords)
        {
            return cls.GetOrderIsUsed(keywords);
        }
        public DataTable GetOrderOrder()
        {
            return cls.GetOrderOrder();
        }
        public DataTable GetOrderDetail_Edit(int id)
        {
            return cls.GetOrderDetail_Edit(id);
        }
        public DataTable GetCodeOrder()
        {
            return cls.GetCodeOrder();
        }
        public DataTable GetOrderActive(string keywords, int id)
        {
            return Order_DAL.GetOrderActive(keywords, id);
        }
        public DataTable GetOrderFillterDate(string DateBegin, string DateEnd)
        {
            return Order_DAL.GetOrderFillterDate(DateBegin, DateEnd);
        }
        #endregion

        #region[Insert-Update-Delete]
        //public static bool Inserttb_Order(ET.Order_ET obj)
        //{
        //    return cls.Inserttb_Order(obj);
        //}
        //public static bool Updatetb_Order(ET.Order_ET obj)
        //{
        //    return cls.Updatetb_Order(obj);
        //}
        //public static bool Updatetb_OrderIsUsed(ET.Order_ET obj)
        //{
        //    return cls.Updatetb_OrderIsUsed(obj);
        //}
        ////public static bool Delete_Order(ET.Order_ET obj)
        ////{
        ////    return cls.Delete_Order(obj);
        ////}
        //public static bool Delete_Order(int id)
        //{
        //    return cls.Delete_Order(id);
        //}
        //public static bool Delete_OrderStatics(int id)
        //{
        //    cls.Delete_OrderStatics(id);
        //    return true;
        //}
        #endregion

        #region[Search-Fillter]
        public DataTable SearchOrder(string keywords)
        {
            return cls.SearchOrder(keywords);
        }
        #endregion

        #region[Check-Del]
        public bool CheckDelOrder(int id)
        {
            return cls.CheckDelOrder(id);
        }
        #endregion
    }
}
